package spring.com.product.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import spring.com.product.entity.UserInfo;
import spring.com.product.mapper.UserInfoMapper;
import spring.com.product.service.UserInfoService;

import java.util.List;

/**
 * @author liux
 * @date 2021/6/1 15:05
 */
@Service
@Slf4j
@AllArgsConstructor
public class UserInfoServiceImpl implements UserInfoService {

    private final UserInfoMapper userInfoMapper;

    @Override
    public List<UserInfo> UserInfoList() {
        LambdaQueryWrapper<UserInfo> queryUser = new LambdaQueryWrapper<>();
        queryUser.eq(UserInfo::getStatus,1);
       return userInfoMapper.selectList(queryUser);
    }
}
